package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CmAbnormalInfoMapper;
import com.ruoyi.system.domain.CmAbnormalInfo;
import com.ruoyi.system.service.ICmAbnormalInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 求助处理统计Service业务层处理
 * 
 * @author pop404NotFound
 * @date 2021-12-12
 */
@Service
public class CmAbnormalInfoServiceImpl implements ICmAbnormalInfoService 
{
    @Autowired
    private CmAbnormalInfoMapper cmAbnormalInfoMapper;

    /**
     * 查询求助处理统计
     * 
     * @param id 求助处理统计主键
     * @return 求助处理统计
     */
    @Override
    public CmAbnormalInfo selectCmAbnormalInfoById(Long id)
    {
        return cmAbnormalInfoMapper.selectCmAbnormalInfoById(id);
    }

    /**
     * 查询求助处理统计列表
     * 
     * @param cmAbnormalInfo 求助处理统计
     * @return 求助处理统计
     */
    @Override
    public List<CmAbnormalInfo> selectCmAbnormalInfoList(CmAbnormalInfo cmAbnormalInfo)
    {
        return cmAbnormalInfoMapper.selectCmAbnormalInfoList(cmAbnormalInfo);
    }

    /**
     * 新增求助处理统计
     * 
     * @param cmAbnormalInfo 求助处理统计
     * @return 结果
     */
    @Override
    public int insertCmAbnormalInfo(CmAbnormalInfo cmAbnormalInfo)
    {
        return cmAbnormalInfoMapper.insertCmAbnormalInfo(cmAbnormalInfo);
    }

    /**
     * 修改求助处理统计
     * 
     * @param cmAbnormalInfo 求助处理统计
     * @return 结果
     */
    @Override
    public int updateCmAbnormalInfo(CmAbnormalInfo cmAbnormalInfo)
    {
        return cmAbnormalInfoMapper.updateCmAbnormalInfo(cmAbnormalInfo);
    }

    /**
     * 批量删除求助处理统计
     * 
     * @param ids 需要删除的求助处理统计主键
     * @return 结果
     */
    @Override
    public int deleteCmAbnormalInfoByIds(String ids)
    {
        return cmAbnormalInfoMapper.deleteCmAbnormalInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除求助处理统计信息
     * 
     * @param id 求助处理统计主键
     * @return 结果
     */
    @Override
    public int deleteCmAbnormalInfoById(Long id)
    {
        return cmAbnormalInfoMapper.deleteCmAbnormalInfoById(id);
    }
}
